home *** CD-ROM | disk | FTP | other *** search
- '/*****************************************************************************\
- '* *
- '* APPLINK.BAS - App-Link Constants File *
- '* *
- '* Version 1.1 *
- '* *
- '* 1992-1995 Synergy Software Technologies Inc. *
- '* *
- '\*****************************************************************************/
-
- 'Command property settings
-
- Global Const SENDMSG = 1 'send message to destination
- Global Const RECVMSG = 2 'dispatch queued message
-
- 'Flag property settings
-
- Global Const DEFAULT_FLAGS = &H0& 'synchronous, non-queued message
- Global Const QUEUE_MSG = &H1& 'queue message at destination
- Global Const START_DEST_APP = &H2& 'load app if not already loaded
- Global Const START_SINGLE_INSTANCE = &H2& 'load app if not already loaded
- Global Const NO_WAIT = &H4& 'send message asynchonously
- Global Const START_MULTI_INSTANCE = &H10& 'load another instance of app
-
- 'Protocol property settings
-
- Global Const NETBIOS = 0 'remote communications via NetBIOS
-
- 'Other miscellaneous constants
-
- Global Const INFINITE_WAIT = -1& 'no timeout, wait forever for reply
- Global Const DEFAULT_TIMEOUT = 10000& 'default timeout value (10 seconds)
-
- 'Error codes
-
- Global Const ALERR_NO_ERROR = 0& 'no errors encountered
- Global Const ALERR_SYS_ERROR = 20000& 'system error
- Global Const ALERR_MEM_ALLOC = 20001& 'unable to allocate memory
- Global Const ALERR_APP_LOAD = 20002& 'unable to load application
- Global Const ALERR_GET_NODENAME = 20500& 'unable to query node name
- Global Const ALERR_REQ_ABORTED = 20501& 'request aborted
- Global Const ALERR_XACT_FAILURE = 20502& 'transaction failure
- Global Const ALERR_NIT_NOTFOUND = 20503& 'unable to locate net instance
- Global Const ALERR_SKT_OPEN = 20504& 'duplicate socket name
- Global Const ALERR_SKT_NOTFOUND = 20505& 'unable to locate socket
- Global Const ALERR_CONV_NOTFOUND = 20506& 'unable to locate conversation
- Global Const ALERR_QUEUE_EMPTY = 20507& 'socket message queue is empty
- Global Const ALERR_QRY_TASKINFO = 20508& 'unable to query task information
- Global Const ALERR_REG_OBJCLASS = 20509& 'unable to register object class
- Global Const ALERR_TIMEOUT = 20510& 'timeout occurred
- Global Const ALERR_CONNECT = 20511& 'unable to establish connection
- Global Const ALERR_INVALID_PRIORITY = 20512& 'invalid message priority
- Global Const ALERR_INVALID_TIMEOUT = 20513& 'invalid timeout value
- Global Const ALERR_INVALID_MSGLEN = 20514& 'invalid message length
- Global Const ALERR_INVALID_MSGPTR = 20515& 'invalid message pointer
- Global Const ALERR_INVALID_LSN = 20516& 'invalid local session number
- Global Const ALERR_NO_REM_RESOURCE = 20517& 'no remote resources available
- Global Const ALERR_SESS_CLOSED = 20518& 'network session was closed
- Global Const ALERR_CMD_CANCELED = 20519& 'network command canceled
- Global Const ALERR_SESS_TAB_FULL = 20522& 'network session table is full
- Global Const ALERR_NO_ANSWER = 20523& 'no answer from partner
- Global Const ALERR_NAME_NOT_FOUND = 20524& 'unable to find network name
- Global Const ALERR_TOO_MANY_CMDS = 20525& 'too many network commands
- Global Const ALERR_ADAPTER_MALFUNC = 20526& 'network adapter malfunction
- Global Const ALERR_NET_BUSY = 20528& 'synchronous transaction pending
- Global Const ALERR_POSTMESSAGE_FAIL = 20529& 'postmessage failed
- Global Const ALERR_NETSERVER_LOAD = 20530& 'unable to load net server
- Global Const ALERR_REGISTER_HANDLER = 20531& 'unable to register fault handler
- Global Const ALERR_CREATE_OBJWIN = 20532& 'unable to create object window
- Global Const ALERR_CREATE_STR = 20533& 'ddecreatestringhandle failed
- Global Const ALERR_REGISTER_SKT = 20534& 'unable to register service name
- Global Const ALERR_CONN_DROPPED = 20535& 'dest socket disconnect prematurely
- Global Const ALERR_NO_DEST = 20536& 'destination is missing
- Global Const ALERR_BLANKS_IN_DEST = 20537& 'destination contains blanks
- Global Const ALERR_SEPARATOR_MISS = 20538& 'dest does not contain node separator
- Global Const ALERR_NODENAME_SIZE = 20539& 'invalid node name length
- Global Const ALERR_NO_SOCKETNAME = 20540& 'socket name is missing
- Global Const ALERR_SOCKETNAME_SIZE = 20541& 'invalid socket name length
- Global Const ALERR_BAD_SEPARATOR = 20542& 'invalid separator in socket name
- Global Const ALERR_BLANKS_IN_SKT = 20543& 'socket name contains blanks
- Global Const ALERR_APP_CLOSE = 20544& 'application terminated
- Global Const ALERR_DAEMON_LOAD = 20545& 'unable to load daemon task
- Global Const ALERR_NO_FREE_CONN = 20546& 'server connection table is full
- Global Const ALERR_SKT_DISABLED = 20547& 'socket is disabled
- Global Const ALERR_NULL_PTR = 20548& 'null parameter pointer
- Global Const ALERR_STR_NOT_FOUND = 20549& 'string resource was not found
- Global Const ALERR_BUF_TOO_SMALL = 20550& 'input buffer is too small
- Global Const ALERR_QUERY_STR = 20551& 'ddequerystring failed
- Global Const ALERR_CANT_SET_PROPERTY = 20552& 'socket property is read-only
- Global Const ALERR_INVALID_PROTOCOL = 20553& 'invalid protocol option
- Global Const ALERR_INVALID_QSTORAGE = 20554& 'invalid queue storage option
- Global Const ALERR_INVALID_QACCESS = 20555& 'invalid queue access option
- Global Const ALERR_INVALID_HANDLER = 20556& 'socket handler was not specified
- Global Const ALERR_UNKNOWN_METHOD = 30000& 'unknown method
-
- 'Function prototypes
-
- Declare Function AplkVBTypeToString Lib "APPLINK.VBX" (lpvSrc As Any, ByVal cb As Long) As String
- Declare Sub AplkStringToVBType Lib "APPLINK.VBX" (lpvDest As Any, ByVal lpvSrc As String, ByVal cb As Long)
- Declare Function MessageBox Lib "User" (ByVal hWnd As Integer, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Integer) As Integer
-
-